package com.springapp.mvc;

import java.util.Map;

public class ConsumerListener {
    
    public String  handleMessage(String message) {
        System.out.println("ConsumerListener通过handleMessage接收到一个纯文本消息，消息内容是：" + message);
        return "hello   i  am  return message";
    }   
       
    public String receiveMessage(String message) {
        System.out.println("String ConsumerListener通过receiveMessage接收到一个纯文本消息，消息内容是：" + message);
        return "hello    receiveMessage   i  am  return message";
    }


    public String receiveMessage(byte messageBytes[]) {
        System.out.println("messageBytes  ConsumerListener通过receiveMessage接收到一个纯文本消息，消息内容是：" + messageBytes);
        return "hello    receiveMessage   i  am  return message";
    }

    public String receiveMessage(Map messageMap) {
        System.out.println("messageMap  ConsumerListener通过receiveMessage接收到一个纯文本消息，消息内容是：" + messageMap);
        return "hello    receiveMessage   i  am  return message";
    }

    public String receiveMessage(Object object) {
        System.out.println("object  ConsumerListener通过receiveMessage接收到一个纯文本消息，消息内容是：" + object);
        return "hello    receiveMessage   i  am  return message";
    }
}  